package com.boliq.demo.adapter;

import com.boliq.demo.R;
import com.boliq.demo.bean.UserBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

public class MyAdapter2 extends BaseQuickAdapter<UserBean, BaseViewHolder> {
    public MyAdapter2() {
        super(R.layout.item_user_info);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, UserBean bean) {
        baseViewHolder.setText(R.id.tv_user_name,bean.getUserName());
        baseViewHolder.setImageResource(R.id.tv_user_head,bean.getHeadID());
    }
}
